const path = require("path");
process.env["ELECTRON_DISABLE_SECURITY_WARNINGS"] = "true";

module.exports = {
  pluginOptions: {
    electronBuilder: {
      nodeIntegration: true,
      // preload:path.resolve(__dirname,'./src/preload.js') ,
      builderOptions: {
        //解决用户不能自己选择安装目录
        nsis: {
          oneClick: false,
          allowToChangeInstallationDirectory: true
        }
      }
    }
  },
  configureWebpack: {
    resolve: {
      alias: {
        utils: path.resolve("src/utils"),
        src: path.resolve("src"),
      },
    },
  },
}